package com.cyt.web.controller.base;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 *@Author: YuShengQiang
 *@Date: 2018-11-16 17:17
 *@Description:选择器跳转
 */

/**
 * execl导入
 *
 * @author shengQiang yu
 * @date 2019-03-08 13:58
 */
@RestController
public class BaseImportController extends BaseController {
    private static Logger log= LoggerFactory.getLogger(BaseImportController.class);


    /**
     * execl导入跳转统一跳转处理
     *
     * @param url 地址
     * @return
     * @author shengQiang yu
     * @date 2019-03-08 13:59
     */
    @RequestMapping("/base/import")
    public ModelAndView goImportPage(String url,String download) {
        ModelAndView modelAndView=new ModelAndView("/base/import/import");
        modelAndView.addObject("url",url);
        modelAndView.addObject("download",download);
        return modelAndView;
    }

}
